'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const i = require('./util-contains-newline.cjs');
function l(t, e, o) {
  if ((e == null ? void 0 : e.type) === 'flow-collection') {
    const n = e.end[0];
    n.indent === t &&
      (n.source === ']' || n.source === '}') &&
      i.containsNewline(e) &&
      o(
        n,
        'BAD_INDENT',
        'Flow end indicator should be more indented than parent',
        !0,
      );
  }
}
exports.flowIndentCheck = l;
